﻿<div id="LoginModal">
    @{
        string retUrl = TempData["ReturnUrl"].ToString(); ;
    }
    @using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = retUrl }))
    {
      
        <div id="Facebook">
            <a href="~/Account/ExternalLogin?provider=Facebook&returnUrl=@retUrl">
                <img src="@Url.Content("~/Content/Images/login-face.jpg")"/>
            </a>
        </div>
        <div id="twitter">
            <a href="~/Account/ExternalLogin?provider=Twitter&returnUrl=@retUrl">
                <img src="@Url.Content("~/Content/Images/login-twitter.jpg")"/>
            </a>
        </div>
        <div id="google">
            <a href="~/Account/ExternalLogin?provider=Google&returnUrl=@retUrl">
                <img src="@Url.Content("~/Content/Images/login-google.jpg")"/>
            </a>
        </div>
       
@*  foreach (AuthenticationClientData p in OAuthWebSecurity.RegisteredClientData)
        {            
        <button type="submit" name="provider" value="@p.AuthenticationClient.ProviderName"
            title="Log in using your @p.DisplayName account">@p.DisplayName</button>
        }*@
    }
</div>
